<script setup lang="ts">
const changeValue = (num: number, event: Event) => {
  const ele = event.target as HTMLInputElement;
  console.log(num, ele.value);
};
</script>

<template>
  <input type="text" @input="changeValue(1, $event)" />
</template>

<style scoped></style>
